/**
 * JAVACC DEMO 1.0
 * @copy right dwusoft company All rights reserved. 
 * @Package com.dwusoft.audit.util  
 */
package com.apache.audit.util;

import java.util.HashMap;

/**
 * description:  
 * @author dwusoft 创建时间：2015-10-19  
 * @Copyright(c)2014:北京--软件技术有限公司
 * @param <V>
 */
@SuppressWarnings("serial")
public class CaseInsensitiveMap<V> extends HashMap<String, V> {

	public V put(String key, V value) {
		return super.put(key.toLowerCase(), value);
	}

	public void putAll(java.util.Map<? extends String, ? extends V> map) {
		super.putAll(map);
	}

	// not @Override because that would require the key parameter to be of type Object
	public V get(String key) {
		return super.get(key.toLowerCase());
	}
}
